package com.ruoyi.fee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fee.mapper.PropertyPaymentMapper;
import com.ruoyi.fee.domain.PropertyPayment;
import com.ruoyi.fee.service.IPropertyPaymentService;

/**
 * 缴费记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class PropertyPaymentServiceImpl implements IPropertyPaymentService 
{
    @Autowired
    private PropertyPaymentMapper propertyPaymentMapper;

    /**
     * 查询缴费记录
     * 
     * @param paymentId 缴费记录主键
     * @return 缴费记录
     */
    @Override
    public PropertyPayment selectPropertyPaymentByPaymentId(Long paymentId)
    {
        return propertyPaymentMapper.selectPropertyPaymentByPaymentId(paymentId);
    }

    /**
     * 查询缴费记录列表
     * 
     * @param propertyPayment 缴费记录
     * @return 缴费记录
     */
    @Override
    public List<PropertyPayment> selectPropertyPaymentList(PropertyPayment propertyPayment)
    {
        return propertyPaymentMapper.selectPropertyPaymentList(propertyPayment);
    }

    /**
     * 新增缴费记录
     * 
     * @param propertyPayment 缴费记录
     * @return 结果
     */
    @Override
    public int insertPropertyPayment(PropertyPayment propertyPayment)
    {
        return propertyPaymentMapper.insertPropertyPayment(propertyPayment);
    }

    /**
     * 修改缴费记录
     * 
     * @param propertyPayment 缴费记录
     * @return 结果
     */
    @Override
    public int updatePropertyPayment(PropertyPayment propertyPayment)
    {
        return propertyPaymentMapper.updatePropertyPayment(propertyPayment);
    }

    /**
     * 批量删除缴费记录
     * 
     * @param paymentIds 需要删除的缴费记录主键
     * @return 结果
     */
    @Override
    public int deletePropertyPaymentByPaymentIds(Long[] paymentIds)
    {
        return propertyPaymentMapper.deletePropertyPaymentByPaymentIds(paymentIds);
    }

    /**
     * 删除缴费记录信息
     * 
     * @param paymentId 缴费记录主键
     * @return 结果
     */
    @Override
    public int deletePropertyPaymentByPaymentId(Long paymentId)
    {
        return propertyPaymentMapper.deletePropertyPaymentByPaymentId(paymentId);
    }
}
